<!DOCTYPE html>
<html lang="en" >
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>登录</h1>
<hr>
<p th:text="${msg}" style="color:red;"></p>
<form th:action="@{/login}" method="post">
  <p>用户名：<input type="text" name="username"></p>
  <p>密码  ：<input type="password" name="password"></p>
    <div  th:if="${captchaEnabled==true}">
  <p>
        <div>验证码  ：<input type="text" name="validateCode"></div>

    <div>
        <a href="javascript:void(0);" title="点击更换验证码">
            <img th:src="@{/base/captchaImage(type=${captchaType})}" class="imgcode" width="20%"/>
        </a>
    </div>
        </p>
    </div>

  <p>记住我：<input type="checkbox" name="remeberme"></p>
  <p><input type="submit"></p>


</form>


<!-- 全局js -->
<script th:inline="javascript"> var ctx = [[@{/}]]; var captchaType = [[${captchaType}]]; </script>
<script src="../static/js/jquery.min.js" th:src="@{../js/jquery.min.js}"></script>
<script src="../static/js/bootstrap.min.js" th:src="@{../js/bootstrap.min.js}"></script>
<script src="../static/shiro/login.js" th:src="@{../shiro/login.js}"></script>


</body>
</html>